<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
		<meta charset="utf-8" />
		<title>歪风小说</title>
		<!--<%&#45;&#45; <link rel="shortcut icon" th:href="@{/picture/favicon.ico}" type="image/x-icon" />&#45;&#45;%>-->
		<link rel="shortcut icon" th:href="@{/picture/favicon.ico}"/>
		<link rel="stylesheet" type="text/css" th:href="@{/css/base.css}"/>
		<link rel="stylesheet" type="text/css" th:href="@{/css/bookshelf.css}"/>
		<link rel="stylesheet" type="text/css" th:href="@{/css/utils/list_bar.css}"/>
		<script th:src="@{/js/jquery-3.4.1.js}" type="text/javascript" charset="utf-8"></script>
		<script th:src="@{/js/bookshelf.js}" type="text/javascript" charset="utf-8"></script>
		<script th:src="@{/js/base.js}" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="Header">
		<div>
				<a th:href="@{/index}" class="log"><img th:src="@{/picture/log.png}"/></a>
				<div class="so">
						<select id="selectmodel">
								<option label="小说">小说</option>
								<option label="作者">作者</option>
						</select>
						<input type="text" name="searchbox" id="searchbbox" required="required"/>
						<button class="sub" onclick="searchbtn()">搜索</button>
				</div>
				<dl class="nav">
						<dd th:if="${session.user_reader==null}">
								<div>
										<span class="login_log"></span>
										<a th:href="@{/loginAndRegist/login}">登录</a>
								</div>
						</dd>
						<dd th:if="${session.user_reader==null}">
								<div>
										<span class="login_log"></span>
										<a th:href="@{/loginAndRegist/regist}">注册</a>
								</div>
						</dd>

						<dd th:if="${session.user_reader!=null}">
								<div>
												<span>
														<img th:if="${session.user_reader.headImage!=null}" th:src="@{'/user-photo/'+${session.user_reader.nickName}+'/'+${session.user_reader.headImage}}" alt="404" class="headimage">
														<img th:if="${session.user_reader.headImage==null}" th:src="@{/picture/default_user.png}" alt="404" class="headimage">

												</span>
										<a th:href="@{/reader/getusermsg}">欢迎！[[${session.user_reader.nickName}]]</a>
										<a th:href="@{/loginAndRegist/loginout}">注销</a>
								</div>
						</dd>

						<dd>
								<div>
										<span class="booklib_log"></span>
										<a th:if="${session.user_reader!=null}" th:href="@{'/reader/personshelf?nickName='+${session.user_reader.nickName}}" >书架</a>
										<a th:if="${session.user_reader==null}" >书架</a>
								</div>
						</dd>
				</dl>
		</div>
</div>
<div class="NavBar">
		<div>
				<a th:href="@{/index}" class='now'><span>首页</span></a>
				<a th:href="@{/xuanhuan}"><span>玄幻</span></a>
				<a th:href="@{/kehuan}"><span>科幻</span></a>
				<a th:href="@{/lishi}"><span>历史</span></a>
				<a th:href="@{/dushi}"><span>都市</span></a>
				<a th:href="@{/wuxia}"><span>武侠</span></a>
				<a th:href="@{/wangyou}"><span>网游</span></a>
				<a th:href="@{/rank}"><span>排行</span></a>
				<a th:href="@{/classification}"><span>分类</span></a>
				<a th:href="@{/auth/authorUI}"><span>作家专区</span></a>
		</div>
</div>
<!----主体-->
<div id="main" class="main_div">
		<div id="tips_head" align="center">
				<span>您的书架可收藏[[${session.user_reader.vip==0?10:session.user_reader.vip*10}]]本，已收藏 <span id="novel_size"></span> 本。 </span>
		</div>
		<br/>
		<hr style="width: 800px;"/>
		<table id="books" align="center">
				<thead>
				<tr>
						<td>序号</td>
						<td>书名</td>
						<td>书签</td>
						<td>更新日期</td>
						<td>操作</td>
				</tr>
				</thead>
				<tbody>


						<tr th:each="item,vs:${bookshelfs}">
								<td>[[${vs.index+1}]]</td>
								<td><a target="_blank"
								       th:href="@{'/novel/book/'+${item.novelName.bookName}}">[[${item.novelName.bookName}]]</a>
								</td>
								<td><a target="_blank"
								       th:href="@{'/read/'+${item.novelName.bookName}+'/'+${item.bookMark}}">[[${item.bookMark}]]</a>
								</td>
								<td>[[${#dates.format(item.novelName.updateTime, 'yyyy-MM-dd')}]]</td>
								<td>
										<button th:name="${item.id}" class="deletebtn">删除</button>
								</td>
						</tr>

				</tbody>
		</table>
		<div id="nav_bars" style="width: 100%;height: 100px;display: block;text-align: center;" th:replace="../templates/static/nav_bar::nav">

		</div>
</div>

<!--底部-->
<div class="Footer">
		<p>本站所收录的完整版电子书和小说及评论都属网友的个人上传行为，如侵犯您的权益，请将相关详情通知我们，我们将及时处理</p>
</div>
</body>
</html>